/**  

* @Title: Language.java 

* @Package com.gxbadge.model 

* @Description: TODO(用一句话描述该文件做什么) 

* @author CST

* @version V1.0  

*/ 

package com.gxbadge.model;

public class Language {

	private Integer langId;
	private String name;
	private String note;
	public Integer getLangId() {
		return langId;
	}
	public void setLangId(Integer langId) {
		this.langId = langId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Language(){
		
	}
	public Language(Integer langId, String name, String note) {
		super();
		this.langId = langId;
		this.name = name;
		this.note = note;
	}
	public boolean equals(Object obj){
		
		if (this == obj){
			return true;
		}
		if (obj != null && obj.getClass() == Language.class){
			Language lang = (Language)obj;
			return this.getLangId().equals(lang.getLangId()) && this.getName().equals(lang.getName());
		}
		return false;

	}
	
	public int hashcode(){
		
		return this.getLangId().hashCode() + this.getName().hashCode();
		
	}
	
	public String toString(){
		
		return this.getLangId().toString() + this.getName().toString();

	}
}
